﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdminInsertItems.aspx.cs"
    Inherits="Corsat.Web.AdminInsertItems" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScManMain" runat="server">
        </asp:ScriptManager>
        <table align="center" width="800px">
           <tr>
           <td align="center">
           <asp:TextBox ID="txtDiocese" runat="server" Width="100%" style="text-align:center;  font-size:medium; font-weight:bold;"></asp:TextBox>
           <br />
           <asp:TextBox ID="txtNumberOfChurchs" runat="server" Width="100%" style="text-align:center;  font-size:medium; font-weight:bold;"></asp:TextBox>
           <br />
           <asp:Button ID="btnPrepareItems" runat="server" onclick="btnPrepareItems_Click" Text="Prepare" />
           </td>
           </tr>
            <tr>
                <td align="center">
                    <asp:UpdatePanel ID="uPnlItems" runat="server">
                        <ContentTemplate>
                            <asp:GridView ID="gvItems" runat="server" Width="100%"  AutoGenerateColumns="false">
                            
                            <Columns>
                            <asp:TemplateField>
                            <ItemTemplate>
                            <asp:TextBox ID="txtItem" runat="server" Width="100%" style="text-align:center; font-size:medium; font-weight:bold;"></asp:TextBox>
                            </ItemTemplate>
                            </asp:TemplateField>
                            </Columns>
                            </asp:GridView>
                        </ContentTemplate>
                        <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="btnPrepareItems" EventName="Click"/>
                        </Triggers>
                    </asp:UpdatePanel>
                </td>
            </tr>

            <tr>
            <td align="center">
            <asp:Button ID="btnCreateItems" runat="server"  Text="Create" 
                    onclick="btnCreateItems_Click"/>
            </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
